include ../Makefile.include

$(package): libfiles
	-rm -rf tmp
	mkdir tmp
	while read f; do \
		if [ `echo $$f | grep -v '^\#'` ]; then ./copy_link.sh $$f; fi \
	done < libfiles
	sed -e "s/#! \/bin\/bash/#! \/bin\/sh/g" -i tmp/usr/bin/ldd
	tar -C tmp -cpzf $@ .

clean: $(software)_clean

